import React from 'react';

import {Router, Route, IndexRoute} from 'react-router';
import Frame from '../views/Frame';
import Home from '../views/Home';
import Detail from '../views/Detail';


const routers = borwserHistory => (
	<Router history={borwserHistory}>
		<Route path="/" component={Frame}>
			<IndexRoute component={Home} />
			<Route path="/detail/:id" component={Detail} />
		</Route>
	</Router>
)

export default routers;